import { createApp } from 'vue'

import router from './router'
import store from './store'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//配置国际化
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

// 引入自定义插件
import gloalComponent from '@/components/index.ts'

const app = createApp(App)
app.use(store)
app.use(router)
app.use(ElementPlus)

// 国际化
app.use(ElementPlus, {
  locale: zhCn,
})

// 安装自定义插件
app.use(gloalComponent)
// svg插件配置代码
import 'virtual:svg-icons-register'

app.mount('#app')
